package com.ruoyi.members.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.members.domain.SysGrassrootsTradeUnions ;

/**
 * 基层工会Mapper接口
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
public interface SysGrassrootsTradeUnionsMapper extends BaseMapper<SysGrassrootsTradeUnions>
{
    /**
     * 查询基层工会
     * 
     * @param unionsId 基层工会主键
     * @return 基层工会
     */
    public SysGrassrootsTradeUnions selectSysGrassrootsTradeUnionsByUnionsId(Long unionsId);

    /**
     * 查询基层工会列表
     * 
     * @param sysGrassrootsTradeUnions 基层工会
     * @return 基层工会集合
     */
    public List<SysGrassrootsTradeUnions> selectSysGrassrootsTradeUnionsList(SysGrassrootsTradeUnions sysGrassrootsTradeUnions);

    /**
     * 新增基层工会
     * 
     * @param sysGrassrootsTradeUnions 基层工会
     * @return 结果
     */
    public int insertSysGrassrootsTradeUnions(SysGrassrootsTradeUnions sysGrassrootsTradeUnions);

    /**
     * 修改基层工会
     * 
     * @param sysGrassrootsTradeUnions 基层工会
     * @return 结果
     */
    public int updateSysGrassrootsTradeUnions(SysGrassrootsTradeUnions sysGrassrootsTradeUnions);

    /**
     * 删除基层工会
     * 
     * @param unionsId 基层工会主键
     * @return 结果
     */
    public int deleteSysGrassrootsTradeUnionsByUnionsId(Long unionsId);

    /**
     * 批量删除基层工会
     * 
     * @param unionsIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysGrassrootsTradeUnionsByUnionsIds(Long[] unionsIds);
}
